package com.guigu.www.mapper;

import com.guigu.www.pojo.BespeakPojectType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author DengHao
 * @since 2021-10-21
 */
public interface BespeakPojectTypeMapper extends BaseMapper<BespeakPojectType> {
    //查询体检项目类型表    -- 陈显科
    @Select("SELECT * FROM `bespeak_poject_type` WHERE bes_pro_type_id IN (\n" +
            "SELECT bes_pro_type_id FROM bespeak_poject WHERE bes_pro_id IN (\n" +
            "SELECT bes_pro_id FROM bes_sm_pro WHERE bes_sm_id=#{id}))")
    List<BespeakPojectType> ProType(int id);
}
